package jwj8508.mvc.dao;

import jwj8508.mvc.model.MemberVO;
import mybatis3.helper.MVCSqlSessionFactory;

import org.apache.ibatis.session.SqlSession;

public class MemberDAO {
	public static boolean login(MemberVO m) {
		boolean result = false;
		SqlSession sess = null;
		try {
			sess = MVCSqlSessionFactory.openSession();
			int i = sess.selectOne("MemberMapper.loginSQL", m);
			if(i>0)	result = true;			
		} finally {
			sess.close();
		}
		return result;
		
	}
}
